widget: Remove gtk_widget_get_child_requisition
authorTimm Bäder <mail@baedert.org>
Tue, 4 Oct 2016 16:13:35 +0000 (18:13 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 16 Oct 2016 16:17:21 +0000 (18:17 +0200)
docs/reference/gtk/gtk4-sections.txt
gtk/gtkwidget.c
gtk/gtkwidget.h

index 73f846da6d01126903555d9258904691126e2371..1e8a25796aeb05baa626f930e3593a21c63f2d52 100644 (file)
@@ -5073,7 +5073,6 @@ gtk_widget_get_scale_factor
 GtkTickCallback
 gtk_widget_add_tick_callback
 gtk_widget_remove_tick_callback
-gtk_widget_get_child_requisition
 gtk_widget_size_allocate
 gtk_widget_size_allocate_with_baseline
 gtk_widget_add_accelerator
index 3080010ee4740b308f6585fd3859c83aa885bd66..cc6c2ea6ccdf6c46c6a338251414d24c9909552a 100644 (file)
@@ -5539,40 +5539,6 @@ gtk_widget_get_frame_clock (GtkWidget *widget)
     }
 }
 
-/**
- * gtk_widget_get_child_requisition:
- * @widget: a #GtkWidget
- * @requisition: (out): a #GtkRequisition to be filled in
- *
- * This function is only for use in widget implementations. Obtains
- * @widget->requisition, unless someone has forced a particular
- * geometry on the widget (e.g. with gtk_widget_set_size_request()),
- * in which case it returns that geometry instead of the widget's
- * requisition.
- *
- * This function differs from gtk_widget_size_request() in that
- * it retrieves the last size request value from @widget->requisition,
- * while gtk_widget_size_request() actually calls the "size_request" method
- * on @widget to compute the size request and fill in @widget->requisition,
- * and only then returns @widget->requisition.
- *
- * Because this function does not call the “size_request” method, it
- * can only be used when you know that @widget->requisition is
- * up-to-date, that is, gtk_widget_size_request() has been called
- * since the last time a resize was queued. In general, only container
- * implementations have this information; applications should use
- * gtk_widget_size_request().
- *
- *
- * Deprecated: 3.0: Use gtk_widget_get_preferred_size() instead.
- **/
-void
-gtk_widget_get_child_requisition (GtkWidget     *widget,
-                                 GtkRequisition *requisition)
-{
-  gtk_widget_get_preferred_size (widget, requisition, NULL);
-}
-
 static gboolean
 invalidate_predicate (GdkWindow *window,
                      gpointer   data)
index f9d42c0cb31472352310cfc9abb3d95a072aa689..3de40b85a0ab1d8e8335524e12589b5e80c3ee50 100644 (file)
@@ -704,9 +704,6 @@ void                gtk_widget_get_preferred_size             (GtkWidget      *w
                                                                GtkRequisition *minimum_size,
                                                                GtkRequisition *natural_size);
 
-GDK_DEPRECATED_IN_3_0_FOR(gtk_widget_get_preferred_size)
-void       gtk_widget_get_child_requisition (GtkWidget         *widget,
-                                             GtkRequisition    *requisition);
 GDK_AVAILABLE_IN_ALL
 void      gtk_widget_add_accelerator     (GtkWidget           *widget,
                                           const gchar         *accel_signal,